package com.sc.nft.entity.vo.ecology;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AdminEcologyHatchDivideIntoLogVO {


    @ApiModelProperty(value = "平台投入燃料")
    private String platformUsePoints;

    @ApiModelProperty(value = "DAO投入燃料")
    private String daoUsePoints;

    @ApiModelProperty(value = "平台分成比例")
    private String platformDivideIntoScale;

    @ApiModelProperty(value = "DAO分成比例")
    private String daoDivideIntoScale;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    public void setPlatformUsePoints(BigDecimal platformUsePoints) {
        this.platformUsePoints = platformUsePoints.stripTrailingZeros().toPlainString();
    }

    public void setDaoUsePoints(BigDecimal daoUsePoints) {
        this.daoUsePoints = daoUsePoints.stripTrailingZeros().toPlainString();
    }

    public void setPlatformDivideIntoScale(BigDecimal platformDivideIntoScale) {
        this.platformDivideIntoScale = platformDivideIntoScale.stripTrailingZeros().toPlainString();
    }

    public void setDaoDivideIntoScale(BigDecimal daoDivideIntoScale) {
        this.daoDivideIntoScale = daoDivideIntoScale.stripTrailingZeros().toPlainString();
    }
}
